Skip to content

Sync typeshed#20338

Merged
hauntsaninja merged 6 commits intomasterfrom
mypybot/sync-typeshed
Dec 1, 2025
Merged

Sync typeshed#20338
hauntsaninja merged 6 commits intomasterfrom
mypybot/sync-typeshed

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Dec 1, 2025

Sync typeshed

Source commit:
python/typeshed@ef2b90c

Note that you will need to close and re-open the PR in order to trigger CI.

mypybot and others added 6 commits December 1, 2025 00:08
This is allegedly causing large performance problems, see 13821

typeshed/8231 had zero hits on mypy_primer, so it's not the worst thing
to undo. Patching this in typeshed also feels weird, since there's a
more general soundness issue. If a typevar has a bound or constraint, we
might not want to solve it to a Literal.

If we can confirm the performance regression or fix the unsoundness
within mypy, I might pursue upstreaming this in typeshed.

(Reminder: add this to the sync_typeshed script once merged)
@hauntsaninja hauntsaninja reopened this Dec 1, 2025
@github-actions
Copy link
Copy Markdown
Contributor Author

github-actions Bot commented Dec 1, 2025

Diff from mypy_primer, showing the effect of this PR on open source code:

strawberry (https://github.com/strawberry-graphql/strawberry)
+ strawberry/types/scalar.py:93: error: Unused "type: ignore" comment  [unused-ignore]

sphinx (https://github.com/sphinx-doc/sphinx)
+ sphinx/util/typing.py:315: error: Unused "type: ignore" comment  [unused-ignore]

discord.py (https://github.com/Rapptz/discord.py)
- ...venv/lib/python3.13/site-packages/mypy/typeshed/stdlib/typing.pyi:1036: note: "update" of "TypedDict" defined here
+ ...venv/lib/python3.13/site-packages/mypy/typeshed/stdlib/typing.pyi:1041: note: "update" of "TypedDict" defined here

@hauntsaninja hauntsaninja merged commit 03b844d into master Dec 1, 2025
20 checks passed
@hauntsaninja hauntsaninja deleted the mypybot/sync-typeshed branch December 1, 2025 21:39
@github-project-automation github-project-automation Bot moved this from Todo to Done in GC-Content-Calculator Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants